﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class TaskNpc:NPC
    {
        private string speakinfo;
        public string Speakinfo {
            get { return this.speakinfo; }
            set { this.speakinfo = value; }
        }
        public TaskNpc(string name, NPCType type, string speakinfo) : base(name, type)
        {
            this.speakinfo = speakinfo;
        }
        public override void speak()
        {
            Console.WriteLine("你有空吗？我有件事想请求你帮我。NPC:{0},任务:{ 1}",this.Name,this.speakinfo);
        }
    }
}
